//
//  TwoViewController.swift
//  yaokongqi
//
//  Created by HappyMilk 02 on 2017/9/26.
//  Copyright © 2017年 nike. All rights reserved.
//

import UIKit

class TwoViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    
    
    @IBAction func btnAction(_ sender: UIButton) {
        
        AdLibrary.stander().showAd()
        

        
        NotificationCenter.default.post(name: NSNotification.Name(rawValue: "show"), object: nil)
        
        let open = UserDefaults.standard.object(forKey: "open") as? String
        if open == "1" {
            AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
        }
        
    }
    
    
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
